package hcn.protocol.brandnew.zhenliao.yaopin;

import hcn.protocol.brandnew.BaseRequest;
import lombok.Data;

import javax.xml.bind.annotation.*;
import java.util.List;


/**
 * 获取药房药品信息 - ODS_03020014
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "MsgBody")
@XmlAccessorType(XmlAccessType.FIELD)
public class SyncDrugInformationRequest extends BaseRequest {

    /**
     * 药物列表信息
     */
    @XmlElementWrapper(name = "DrugLists")
    @XmlElement(name = "DrugList")
    private List<DrugList> drugLists;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class DrugList {

        /**
         * 就诊机构代码/开单机构代码
         */
        @XmlElement(name = "VisitOrganization")
        private String visitOrganization;
        /**
        /**
         * 药物类型代码
         */
        @XmlElement(name = "DrugType")
        private String drugType;
        /**
         * 药房编码
         */
        @XmlElement(name = "PharmacyId")
        private String pharmacyId;
        /**
         * 药品编码
         */
        @XmlElement(name = "DrugsNumber")
        private String drugsNumber;
        /**
         * 药品产地id
         */
        @XmlElement(name = "DrugProductionPlaceId")
        private String drugProductionPlaceId;
    }

}
